package com.dormitory_15.dormitory.Service.Student;

import com.dormitory_15.dormitory.Entity.Student;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface StudentService {
    Student login(String username, String password);
    //注册
    Integer register(Student student);
    //查询用户 用于是否存在 查询对应用户根据账户
    Student findByUsername(String username);
    List<Student> findByName(String name, String origin);
    PageInfo<Student> getStudentsByPage(int pageNum, int pageSize);

}
